projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63a0ab5
)
window: Make non-resizable windows use default size for geometry hints
author
Benjamin Otte
<otte@redhat.com>
Sun, 1 May 2011 06:47:58 +0000
(08:47 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 1 May 2011 06:47:58 +0000
(08:47 +0200)
Previously, we were trying to size them by the default size, but then
setting the minimum size as the geometry hints' minimum and maximum
size.
gtk/gtkwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwindow.c
b/gtk/gtkwindow.c
index 18ac3a222409e462a1011dbb78ddf6bac1295d65..04cad00a3796f17ff0f408b706cd490577f58443 100644
(file)
--- a/
gtk/gtkwindow.c
+++ b/
gtk/gtkwindow.c
@@
-7279,6
+7279,10
@@
gtk_window_compute_hints (GtkWindow *window,
}
}
+ /* Please use a good size for unresizable widgets, not the minimum one. */
+ if (!priv->resizable)
+ gtk_window_guess_default_size (window, &requisition.width, &requisition.height);
+
if (*new_flags & GDK_HINT_MIN_SIZE)
{
if (new_geometry->min_width < 0)